<?php
	require_once('./config.php');
	$con=login();
	//操作判断
	$jduser = $_COOKIE["jduser"];//获取cookie用户名
	$jdpassword = $_COOKIE["jdpassword"];//获取cookie用户名
	if (!$con)
	{
		die('MYSQL链接失败: ' . mysqli_error());
	}
	else
	{
			$sql="select tequan FROM user WHERE tequan='admin' and 用户名='$jduser' and 密码='$jdpassword'";
			$panduan=mysqli_query($con,$sql);
			$row = mysqli_fetch_array($panduan);
			if (mysqli_num_rows($panduan) == NULL)
			{
				header("Location:feifalaiyuan.html");
			}
			else
			{
				header("Location:useryemian.php");
			}
	
	}
	?>
